﻿namespace TestTool.Tests.Common.Transport
{
    using System;
    using System.ServiceModel;
    using TestTool.HttpTransport.Interfaces;

    public class EndpointController : IEndpointController, ITransportController, IChannelController
    {
        private EndpointAddress _address;
        private bool _wsaEnabled;

        public EndpointController()
        {
        }

        public EndpointController(EndpointAddress address)
        {
            this._address = address;
        }

        public void UpdateAddress(EndpointAddress address)
        {
            this._address = address;
        }

        public EndpointAddress Address
        {
            get
            {
                return this._address;
            }
        }

        public bool WsaEnabled
        {
            get
            {
                return this._wsaEnabled;
            }
            set
            {
                this._wsaEnabled = value;
            }
        }
    }
}

